package com.antd.common.sms.fegin;

import com.antd.admin.api.entity.SysSmsLog;
import com.antd.common.core.util.R;
import com.antd.common.sms.fegin.factory.RemoteSmsLogFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * TODO
 *
 * @author 子丶沫
 * @version 1.0
 * @date 2020/12/2 11:09
 */
@FeignClient(contextId = "remoteSmsLogService",value = "antd-admin-server",fallbackFactory = RemoteSmsLogFactory.class)
public interface RemoteSmsLogService {
    /**
     * 保存短信发送日志
     * @return
     */
    @PostMapping("/sms/saveSmsLog")
    R<Object> saveSmsLog(@RequestBody SysSmsLog smsLog);
}
